package com.atguigu.srb.servicesms.client.imp;

import com.atguigu.srb.common.result.ResponseEnum;
import com.atguigu.srb.common.result.Result;
import com.atguigu.srb.servicesms.client.CoreClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * ClassName: CoreClientFallback
 * Package: com.atguigu.srb.servicesms.client.imp
 * Description:
 *
 * @Author 王晓龙
 * @Create 2023/4/4 19:38
 * @Version 1.0
 */
@Service
@Slf4j
public class CoreClientFallback implements CoreClient {

    @Override
    public Result isUsed(String mobile) {
        log.error("远程验证手机号注册是否重复注册失败{}", mobile);
        return Result.setResult(ResponseEnum.ERROR);
    }
}
